package example;


import java.util.*;
import java.math.*;
import java.text.DecimalFormat;  
public class test{
	static DecimalFormat df = new DecimalFormat("######0.00");
	public static void main(String[] args)
	{
		char [] y = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};
		String s1 = "abc";
		int [] x = judge.frequency(s1);
		judge.sort1(x);
		
		for(int i = 0; i < x.length - 1; i++)
		{
			System.out.println(y[i]+"在本文中出现的频率：" + df.format((double)x[i]/(double)x[26]*100) + "%");
		}
	}
}